import request from '/@/utils/request';

/**现场管理
* 查询工作组 左边  http://8.129.209.198:8010/ISM/Group/GetList
    *
* @author taoming
* @date 2023/3/30
*/
export function WorkLeftGetList(params?: object) {
    return request({
        url: '/ISM/Group/GetList',
        method: 'get',
        params
    })
}
/**
 *  工作组删除
 *
 * @author taoming
 * @date 2023/3/30
 */
export function GroupDelete(parameter:any) {
    return request({
        url: '/ISM/Group/Delete',
        method: 'post',
        data: parameter
    })
}
/**
 * 查询用户的下拉数据 http://8.129.209.198:8010/ISM/Engineer/List
 *
 * @author taoming
 * @date 2023/3/30
 */
export function EngineerList (params?: object) {
    return request({
        url: '/ISM/Engineer/List',
        method: 'get',
        params
    })
}
/**
 * 查询工作组成员用于回显 http://8.129.209.198:8010/ISM/Member/GetManageList
 *
 * @author taoming
 * @date 2023/3/30
 */
export function MemberGetManageList (parameter:any) {
    return request({
        url: '/ISM/Member/GetManageList',
        method: 'get',
        params: parameter
    })
}

/**
 *  工作组保存
 *
 * @author taoming
 * @date 2023/3/30
 */
export function GroupConserve(parameter:any) {
    return request({
        url: '/ISM/Group/Conserve',
        method: 'post',
        data: parameter
    })
}
/**
 * 点击工作组查询工作组成员--表格 http://8.129.209.198:8010/ISM/Member/GetList
 *
 * @author taoming
 * @date 2023/3/30
 */
export function MemberGetList (parameter:any) {
    return request({
        url: '/ISM/Member/QueryList',
        method: 'get',
        params: parameter
    })
}
/**
 * 点击工作组查询工作组成员--表格 http://8.129.209.198:8010/ISM/Member/GetList
 *
 * @author taoming
 * @date 2023/3/30
 */
export function MemberNoGetList (parameter:any) {
    return request({
        url: '/ISM/Member/GetList',
        method: 'get',
        params: parameter
    })
}

/**
 * 默认查询工作组成员--表格 http://8.129.209.198:8010/ISM/Engineer/QueryEngineerList
 *
 * @author taoming
 * @date 2023/3/30
 */
export function EngineerQueryEngineerList(parameter:any) {
    return request({
        url: '/ISM/Engineer/QueryEngineerList',
        method: 'get',
        params: parameter
    })
}
/**
 *  工程师的删除
 *
 * @author taoming
 * @date 2023/3/30
 */
export function EngineerDelete(parameter:any) {
    return request({
        url: '/ISM/Engineer/Delete',
        method: 'post',
        data: parameter
    })
}
/**
 *  成员的删除
 *
 * @author taoming
 * @date 2023/3/30
 */
export function MemberDelete(parameter:any) {
    return request({
        url: '/ISM/Member/Delete',
        method: 'post',
        data: parameter
    })
}

/**
 * 维修工程师的批量添加
 *
 * @author taoming
 * @date 2023/3/30
 */
export function EngineerAddAll(parameter:any) {
    return request({
        url: '/ISM/Engineer/AddAll',
        method: 'post',
        data: parameter
    })
}

/**
 * 添加工作组成员多选
 *
 * @author taoming
 * @date 2023/3/30
 */
export function MemberAddMember(parameter:any) {
    return request({
        url: '/ISM/Member/AddMember',
        method: 'post',
        data: parameter
    })
}

/**
 * 工程师列表用于按钮（增加工作组成员）弹窗的下拉 /ISM/Engineer/GetList
 *
 * @author taoming
 * @date 2023/3/31
 */
export function EngineerGetList(parameter:any) {
    return request({
        url: '/ISM/Engineer/GetList',
        method: 'get',
        params: parameter
    })
}


/**
 * 工程师状态下拉列表 /ISM/Engineer/GetAll
 *
 * @author taoming
 * @date 2023/3/31
 */
export function EngineerGetAll(parameter?:any) {
    return request({
        url: '/ISM/Engineer/GetAll',
        method: 'get',
        params: parameter
    })
}